/**
 * 省市区接口
 */
import { HttpGet } from '@/api/index.js'

/**
 * 通过pid获取省市区树形结构
 * @param pid
 */
export const tree = (pid = 0) => {
    return HttpGet('/admin/common/areas/tree', {pid})
}

/**
 * 获取省市树形结构
 */
export const provinceCityTree = () => {
    return HttpGet('/admin/common/areas/provinceCityTree')
}
